#pragma once

namespace PhoneXamlDirect3DApp1Comp
{
	public ref class Texture sealed
	{
	internal:
		property int* Data;

	public:
		void SetData(int* data)
		{
			size_t size = Width * Height;
			if (Data == nullptr)
			{
				Data = new int[size];
			}
			for (size_t i = 0; i < size; i++)
			{
				Data[i] = data[i];
			}
		}
		property int ID;
		property int Width;
		property int Height;
	};
}